import {request} from '@/utils/request'

const apiUrl = '/api/v1/curve/'

//分页数据
export function curByPage(data) {
  return request({
    url: `${apiUrl}list/byPage`,
    method: 'post',
    data
  })
}

// 下载数据
export function downLoadFile(data) {
  return request({
    url: `${apiUrl}exportData`,
    method: 'post',
    data
  })
}

//检查文件
export function checkFile(url) {
  return request({
    url,
    method: 'get',
    responseType: 'blob'
  })
}
